package com.wyh.service;


import com.wyh.common.response.PageInfo;
import com.wyh.entity.AdminEconomicMan;
import com.wyh.request.AdminEconomicManRequest;

import java.util.List;

/**
 * 经纪人接口接口
 *
 * @author WangYuHang
 * @date 2024-03-03
 */
public interface IAdminEconomicManService {
    /**
     * 新增
     *
     * @param param param
     * @return AdminEconomicMan
     */
    AdminEconomicMan add(AdminEconomicManRequest param);

    /**
     * 删除
     *
     * @param id id
     * @return boolean
     */
    boolean delete(Integer id);

    /**
     * 批量删除
     *
     * @param ids ids
     * @return boolean
     */
    boolean deleteBatch(List<Integer> ids);

    /**
     * 更新
     *
     * @param param param
     * @return boolean
     */
    boolean update(AdminEconomicManRequest param);

    /**
     * 查询单条数据，Specification模式
     *
     * @param id id
     * @return AdminEconomicMan
     */
    AdminEconomicMan getById(Integer id);

    /**
     * 查询分页数据
     *
     * @param param param
     * @return PageInfo<AdminEconomicMan>
     */
    PageInfo<AdminEconomicMan> pageList(AdminEconomicManRequest param);


    /**
     * 查询所有数据
     *
     * @return List<AdminEconomicMan>
     */
    List<AdminEconomicMan> list(AdminEconomicManRequest param);
}
